-
Notifications
You must be signed in to change notification settings - Fork 3.2k
Fix crash when trying to replace receipt #61471
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix crash when trying to replace receipt #61471
Conversation
@rushatgabhane Please copy/paste the Reviewer Checklist from here into a new comment on this PR and complete it. If you have the K2 extension, you can simply click: [this button] |
@rushatgabhane are you around to review this PR? |
yes asap |
Reviewer Checklist
Screenshots/VideosAndroid: HybridAppWhatsApp.Video.2025-05-09.at.10.27.27.mp4Android: mWeb ChromeMacOS: Chrome / SafariScreen.Recording.2025-05-09.at.10.22.19.movMacOS: Desktop |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
We did not find an internal engineer to review this PR, trying to assign a random engineer to #61138 as well as to this PR... Please reach out for help on Slack if no one gets assigned! |
I don't know if this is the best solution. But it is important to fix a crash |
I consulted with @WoLewicki and we decided that it's better to go with workaround for now because it's not trivial to fix in react-native-screens. |
i agree! |
…sh-on-receipt-change
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
🚀 Deployed to staging by https://github.com/marcaaron in version: 9.1.45-0 🚀
|
🚀 Deployed to staging by https://github.com/marcaaron in version: 9.1.45-0 🚀
|
Explanation of Change
App crashes because there are two navigation actions called almost in the same time. Modal is closed and immediately after navigation to scan step screen is dispatched. This causes bug in react-native-screens as native hierarchy and React hierarchy get out of sync. Adding
InteractionManager
allows modal to close first and then dispatch second navigation action.Fixed Issues
$ #61138
PROPOSAL: N/A
Tests
Offline tests
QA Steps
PR Author Checklist
### Fixed Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectioncanBeMissing
param foruseOnyx
toggleReport
and notonIconClick
)src/languages/*
files and using the translation methodSTYLE.md
) were followedAvatar
, I verified the components usingAvatar
are working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG)
)Avatar
is modified, I verified thatAvatar
is working as expected in all cases)Design
label and/or tagged@Expensify/design
so the design team can review the changes.ScrollView
component to make it scrollable when more elements are added to the page.main
branch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTest
steps.Screenshots/Videos
Android: Native
android.mov
Android: mWeb Chrome
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari
MacOS: Desktop